﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Visa_PostVisaForm.aspx.cs" Inherits="FS.Web.BLL.Visa.Visa_PostVisaForm" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        function ChangeCity() {
            var cityid = $("#City_id").val();
            $("#HD_change").val(1);

            var parm = 'action=getcerttype&cityid=' + escape(cityid);
            getAjax('/Bll/Visa_base/base.ashx', parm, function (rs) {
                try {
                    var json = eval("(" + rs + ")");
                    $("#Ref_CertType").empty();
                    var len = json.MENU.length;
                    if (len = 0) {
                        showTipsMsg("找不到签证国家下的签证类型，请到【签证国家】窗口维护！", 2000, 5);
                    } else {
                        for (var i = 0; i < json.MENU.length; i++) {
                            var menu = json.MENU[i];
                            $("#Ref_CertType").append("<option value='" + menu.ID +
                                "'>" + menu.NAME + "</option>");
                        }
                        ChangeType();
                    }
                } catch (e) {
                }
            });
        }

        function ChangeType() {
            var certtype = $("#Ref_CertType").val();
            var cityid = $("#City_id").val();
            $("#HD_certtype").val(certtype);
            $("#HD_change").val(1);
            
            var parm = 'action=GetSupplybycitycert&cityid=' + escape(cityid) + '&certtype=' + escape(certtype) ;
            getAjax('/Bll/Visa_base/base.ashx', parm, function (rs) {
                try {
                    var json = eval("(" + rs + ")");
                    $("#Supply_id").empty();
                    var len = json.MENU.length;
                    if (len = 0) {
                        showTipsMsg("找不到相应的供应商报价信息，请到【供应商报价】窗口维护！", 2000, 5);
                    } else {
                        for (var i = 0; i < json.MENU.length; i++) {
                            var menu = json.MENU[i];
                            $("#Supply_id").append("<option value='" + menu.SUPPLY_ID +
                                "'>" + menu.SUPPLY_NAME + "</option>");
                        }
                        ChangeSupply();
                    }
                } catch (e) {
                }
            });
        }

        function ChangeSupply() {
            var supplyid = $("#Supply_id").val();
            $("#HD_supply").val(supplyid);
            $("#HD_change").val(1);
        }
    </script>
</head>
<body>    
    <form id="form1" runat="server">
    <input id="HD_certtype" type="hidden" runat="server" />
    <input id="HD_supply" type="hidden" runat="server" />
    <%--需要重新计算价格--%>
    <input id="HD_change" type="hidden" runat="server" value="0" />    
    <table border="0" cellpadding="0" cellspacing="0" class="frm">  
        <tr>
            <th>
                单号：
            </th>
            <td>
                 <input id="info_no" runat="server" type="text" class="txt" disabled="disabled" style="width: 180px" />
            </td>
            <th>
                订单状态：</th>
            <td>
               <input id="flagname" runat="server" type="text" class="txt" disabled="disabled" style="width: 180px" />
             </td>
        </tr>
        <tr>
            <th>
                收签时间：
            </th>
            <td>
                 <input id="info_getdate" runat="server" type="text" class="txt" disabled="disabled" style="width: 180px" />
            </td>
            <th>
                送签时间：</th>
            <td>
               <input id="Submitdate" runat="server" type="text" class="txt" style="width: 180px"
                    onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd'})" />
             </td>
        </tr>
        <tr>
            <th>
                签证国家：
            </th>
            <td>
                <select id="City_id" runat="server" type="text" class="select" style="width: 186px" onchange="ChangeCity()">                
                </select>
            </td>
            <th>
                签证类型：
            </th>
            <td>
                <select id="Ref_CertType" runat="server" type="text" class="select" style="width: 186px" onchange="ChangeType()" />
            </td>
        </tr>        
        <tr>
            <th>
                供应商：
            </th>
            <td>
                <select id="Supply_id" runat="server" type="text" class="select" style="width: 186px"
                     onchange="ChangeSupply()">                
                </select>
            </td>
            <th>
                
            </th>
            <td>
                
            </td>
        </tr>
         <tr>
            <th>
                客人名称：
            </th>
            <td>
                 <input id="InfoDetail_user" runat="server" type="text" class="txt" style="width: 180px" />
            </td>
            <th>
                护照
            </th>
            <td>
               <input id="InfoDetail_cardno" runat="server" type="text" class="txt"  style="width: 180px" />
             </td>
        </tr>                
        <tr>
            <th>
                备注：
            </th>
            <td colspan=3>
                <textarea id="InfoDetail_remark" class="txtRemark" runat="server" style="width: 95%;
                    height: 50px;"></textarea>
            </td>            
        </tr>
    </table>
    <div class="frmbottom">
        <asp:LinkButton ID="Save" runat="server" class="l-btn" OnClientClick="return CheckDataValid('#form1');"
            OnClick="Save_Click"><span class="l-btn-left">
            <img src="/Themes/Images/save.png" alt="" />保 存</span></asp:LinkButton>
        <a class="l-btn" href="javascript:void(0)" onclick="OpenClose();"><span class="l-btn-left">
            <img src="/Themes/Images/cancel.png" alt="" />关 闭</span></a>
    </div>
    </form>
</body>
</html>
